package xginxnsq

import (
	"gitee.com/xiaoyutab/xgotool/optional/xnsq"
	"gitee.com/xiaoyutab/xgotool/xgin"
	"github.com/gin-gonic/gin"
)

// 获取NSQ运行状态
//
//	GET	/status
func status(c *gin.Context) *xgin.Response {
	st := xnsq.Status()
	return xgin.Resp().Success(gin.H{
		"status": st,
	})
}
